package mail;

/**
 * Filtro email por direccion de destino.
 * @author Damian
 *
 */
public class FilterDestiny extends SearchType {

	@Override
	public Boolean filter(Mail email) {
		return email.getDirDest().contains(this.content);
	}
	
	public FilterDestiny(String destiny){
		this.content = destiny;
	}

}
